Skip to content

fix(security): pin 8 action refs to SHAs and add a token permissions floor - #97

Merged
imran-siddique merged 1 commit into
mainfrom
sec/supply-chain-hardening
Sep 5, 2026
Merged

fix(security): pin 8 action refs to SHAs and add a token permissions floor#97
imran-siddique merged 1 commit into
mainfrom
sec/supply-chain-hardening

Conversation

@imran-siddique

Copy link
Copy Markdown
Member

Part of a proactive security sweep across agentrust-io.

Action pinning (8 refs)

Every third-party action ran from a mutable tag. A tag can be repointed by whoever controls the action repo, so these workflows trusted a moving target. Each ref now pins a commit SHA with the version kept in a trailing comment, so intent stays readable and Dependabot can still propose bumps.

Token scope

1 workflow(s) had no top-level permissions: block, so any job without its own block inherited the repository default. Added contents: read as the floor.

Checked before applying: every job in this repo that needs more than read already declares its own job-level block, which overrides the top-level floor. No job loses a capability it was using.

Workflow-only, no source or test changes. Clears the PinnedDependenciesID and TokenPermissionsID alerts that make up the bulk of this repo's open code-scanning findings.

🤖 Generated with Claude Code

https://claude.ai/code/session_01XbDBXDWWvMFa7c2jGgyq9t

…floor

All 8 third-party action refs ran from mutable tags. A tag is
repointable by whoever controls the action repo, so the workflows
trusted a moving target. Each now pins a commit SHA with the version
kept in a trailing comment.

1 workflow(s) had no top-level permissions block, so any job without
its own block inherited the repository default. contents: read is now the
floor. Jobs that already declared their own permissions keep them, so
nothing loses a capability it was using.

Workflow-only, no source or test changes.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XbDBXDWWvMFa7c2jGgyq9t
@imran-siddique
imran-siddique requested a review from a team as a code owner September 5, 2026 21:08
@imran-siddique
imran-siddique merged commit e69e1a0 into main Sep 5, 2026
7 checks passed
@imran-siddique
imran-siddique deleted the sec/supply-chain-hardening branch September 5, 2026 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant